<template>
	<view>
		<view class="enter-page">
			<view class="explain-title">
				<view class=""></view>
				<view class="">
					{{item.title}}？
				</view>
			</view>
			<!-- <image src="../../../../static/organization/active_background_img.png" mode=""></image> -->
			<image :src="item.image" mode="" v-if="item.image!=null"></image>
			<view class="enter-page-tip">
				{{item.answer}}
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				item:'',
				store_id:""
			}
		},
		onLoad(options) {
			
			let store_id = parseInt(options.store_id,10);
			console.log('进入了onload 获取url的store_id',store_id)
			if(!store_id > 0){
				store_id = uni.getStorageSync('store_id')?parseInt(uni.getStorageSync('store_id'),10):0
			}else{
				uni.setStorageSync('store_id', store_id)
			}
			
			this.store_id = parseInt(store_id,10)
			this.$store.commit('updateStoreId',store_id)
			this.item = uni.getStorageSync('question')
			console.log(this.item,'222')
			document.title = this.item.title;
			if (/ip(hone|od|ad)/i.test(navigator.userAgent)) {
				var i = document.createElement('iframe');
				i.src = '/favicon.ico';
				i.style.display = 'none';
				i.onload = function() {
					setTimeout(function(){
						i.remove();
					}, 1)
				}
				document.body.appendChild(i);
			}
		}
	}
</script>

<style>
	page{
		background: #F3F3F4;
	}
	.enter-page{
		width: 100%;
		padding: 30upx;
		box-sizing: border-box;
		background: #FFFFFF;
	}
	.explain-title{
		display: flex;
		margin-bottom: 30upx;
	}
	.explain-title>view:first-child{
		width: 8upx;
		height: 32upx;
		background: #FF8B46;
		vertical-align: middle;
		margin-top: 6upx;
	}
	.explain-title>view:last-child{
		color: #333333;
		font-size: 34upx;
		margin-left: 10upx;
	}
	.enter-page>image{
		width: 100%;
		height: 388upx;
		margin-bottom: 20upx;
	}
	.enter-page-tip{
		color: #666666;
		font-size: 28upx;
		text-indent:56upx;
	}
</style>
